//
//  DatabaseHandle.h
//  礼物说
//
//  Created by dllo on 16/4/25.
//  Copyright © 2016年 sunzhichao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LiWu.h"
#import "gongLv.h"

@interface DatabaseHandle : NSObject

+ (instancetype)shareDataBase;
- (void)openDB;

- (void)closeDB;
- (void)createTable;
- (void)deleteTable;
- (void)insertDataWithLiWu:( LiWu *)liwu;
- (void)deleteDataWithLiWu:(LiWu *)liwu Name:(NSString *)name;
- (NSMutableArray *)selectTable;
- (NSMutableArray *)selectDataWithName:(NSString *)name;

- (void)createTableGongLv;
- (void)deleteTableGonglv;
- (void)insertDataWithGongLv:(gongLv *)gongLv;
- (void)deleteDataWithGongLV:(gongLv *)gonglv Name:(NSString *)name;
- (NSMutableArray *)selectTableGongLv;
- (NSMutableArray *)selectDataGongLvWithName:(NSString *)name;


@end
